Configuring Tomcat

Once the Tomcat is extracted, we need to customize to our requirements so that our application will run on Tomcat. This includes adding the required third party jars, properties file and configuring data sources etc...

The catalina.properties file in the conf folder needs to be modified so as to make the Tomcat container to pick custom configuration or jars defined by user.

Shared Locations

shared.loader=${catalina.home}/shared/conf, ${catalina.home}/shared/cr_lib/*.jar

Continuing the same file we need to mention the coherence jar not to be scanned using JarScanner functionality. To achieve this in the same catalina.properties file, find the tomcat.util.scan.StandardJarScanFilter.jarsToSkip=\ and add coherence*.jar.

Note: To solve the DB2 latest Jar issues that comes with software, we need to mention the pdq.jar not be scaaned using Jar Scanner funcationality.

Example

tomcat.util.scan.StandardJarScanFilter.jarsToSkip=\
...
cglib-*.jar,\
cobertura-*.jar,\
coherence*.jar,\
commons-beanutils*.jar,\
pdq*.jar,\
...

Note: The above configurations are same for any instance of Tomcat.